package Test_2019_2_18;

/**
 * 7、使用循环语句输出下面的图形。
 * #
 * # # #
 * # # # # #
 * # # # # # # #
 */
public class Test7 {
    public static void main(String[] args) {
        int num = -1;
        for (int a = 0; a < 4; a++) {
            num += 2;
            for (int b = 1; b <= num; b++) {
                System.out.print("#");
            }
            System.out.println();
        }
    }
}
